package com.heima.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.article.dto.ArticleHomeDto;
import com.heima.model.article.pojo.ApArticle;
import com.heima.model.user.pojo.ApUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface ArticleHomeMapper extends BaseMapper<ApArticle> {
    public List<ApArticle> load(ArticleHomeDto dto, Short type);

    // @Update("update ap_article set static_url = #{date.staticUrl} where id = #{date.id}")
    // void updateInfoById(@Param("date") ApArticle article);
}
